export const enumIsOrNo = {
  1: '是',
  2: '否',
}

export const isYearDisabled = year => {
  const currentYear = new Date().getFullYear()

  return year < 2020 || year > currentYear
}
